package com.atguigu.edumsm.controller;

import com.atguigu.commonutils.R;
import com.atguigu.edumsm.service.MsmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/edumsm/crmbanner")
//@CrossOrigin
public class MsmController {

    @Autowired
    MsmService msmService;

    @GetMapping("send/{phone}")
    public R getDuanXin(@PathVariable String phone){
        String[] code = msmService.getDuanxinxin(phone);
        return R.ok().data("code",code);
    }

}
